import request from '@/utils/request'

// 查询视频后台管理列表
export function listVideoInfo(query) {
  return request({
    url: '/system/VideoInfo/list',
    method: 'get',
    params: query
  })
}

export function listVideoQs() {
  return request({
    url: '/system/VideoInfo/year/qs',
    method: 'get'
  })
}

export function getapiaaaa() {
  return request({
    url: '/system/VideoInfo/year/aaa',
    method: 'get'
  })
}


// 查询视频后台管理详细
export function getVideoInfo(id) {
  return request({
    url: '/system/VideoInfo/' + id,
    method: 'get'
  })
}

// 新增视频后台管理
export function addVideoInfo(data) {
  return request({
    url: '/system/VideoInfo',
    method: 'post',
    data: data
  })
}

// 修改视频后台管理
export function updateVideoInfo(data) {
  return request({
    url: '/system/VideoInfo',
    method: 'put',
    data: data
  })
}

// 删除视频后台管理
export function delVideoInfo(id) {
  return request({
    url: '/system/VideoInfo/' + id,
    method: 'delete'
  })
}
